import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Escribe una descrición de la clase Room1_2 aquí.
 * 
 * @autor (tu nombre) 
 * @versión (Un número de versión o una fecha)
 */
public class Room1_2 extends World
{

    /**
     * Constructor para objetos de clase Room1_2.
     * 
     */
    public Room1_2()
    {    
        // Crea un nuevo mundo de 600x400 celdas con un tamaño de celda de 1x1 pixeles.
        super(400, 278, 1); 

        prepare();
    }

    /**
     * Prepare the world for the start of the program. That is: create the initial
     * objects and add them to the world.
     */
    private void prepare()
    {
        Muro muro = new Muro();
        addObject(muro, 151, 51);
        Muro muro2 = new Muro();
        addObject(muro2, 302, 186);
        Muro muro3 = new Muro();
        addObject(muro3, 191, 17);
        muro2.setLocation(213, 17);
        muro.setLocation(169, 17);
        Muro muro4 = new Muro();
        addObject(muro4, 235, 22);
        muro4.setLocation(235, 17);
        Muro muro5 = new Muro();
        addObject(muro5, 263, 24);
        Muro muro6 = new Muro();
        addObject(muro6, 293, 31);
        muro5.setLocation(257, 17);
        muro5.setLocation(256, 17);
        muro6.setLocation(277, 17);
        Muro muro7 = new Muro();
        addObject(muro7, 305, 21);
        muro7.setLocation(298, 17);
        Muro muro8 = new Muro();
        addObject(muro8, 301, 23);
        muro8.setLocation(319, 17);
        Muro muro9 = new Muro();
        addObject(muro9, 410, 49);
        muro9.setLocation(340, 17);
        Muro muro10 = new Muro();
        addObject(muro10, 369, 28);
        muro10.setLocation(361, 17);
        Muro muro11 = new Muro();
        addObject(muro11, 393, 43);
        muro11.setLocation(382, 17);
        Muro muro12 = new Muro();
        addObject(muro12, 429, 62);
        muro12.setLocation(403, 17);
        Muro muro13 = new Muro();
        addObject(muro13, 420, 120);
        muro13.setLocation(420, 120);
        muro13.setLocation(420, 120);
        muro13.setLocation(420, 120);
        muro13.setLocation(420, 120);
        muro13.setLocation(420, 120);
        muro13.setLocation(151, 25);
        muro13.setLocation(148, 18);
        muro13.setLocation(148, 17);
        Muro muro14 = new Muro();
        addObject(muro14, 555, 94);
        muro14.setLocation(424, 17);
        muro13.setLocation(149, 17);
        Heroe heroe = new Heroe();
        addObject(heroe, 387, 135);
        heroe.setLocation(265, 135);
        removeObject(heroe);
        muro2.setLocation(204, 13);
        muro3.setLocation(195, 51);
        muro3.setLocation(195, 51);
        muro3.setLocation(195, 51);
        muro3.setLocation(195, 51);
        muro2.setLocation(227, 74);
        muro.setLocation(171, 10);
        muro13.setLocation(151, 10);
        muro3.setLocation(191, 21);
        muro3.setLocation(190, 10);
        muro2.setLocation(209, 10);
        muro4.setLocation(228, 10);
        muro5.setLocation(248, 10);
        muro6.setLocation(268, 10);
        muro7.setLocation(288, 10);
        muro8.setLocation(308, 10);
        muro9.setLocation(328, 10);
        muro9.setLocation(327, 10);
        muro9.setLocation(328, 10);
        muro10.setLocation(348, 10);
        muro11.setLocation(368, 10);
        muro12.setLocation(388, 10);
        muro14.setLocation(408, 10);
        Muro muro15 = new Muro();
        addObject(muro15, 158, 37);
        Muro muro16 = new Muro();
        addObject(muro16, 156, 69);
        Muro muro17 = new Muro();
        addObject(muro17, 216, 111);
        Muro muro18 = new Muro();
        addObject(muro18, 195, 144);
        Muro muro19 = new Muro();
        addObject(muro19, 165, 120);
        Muro muro20 = new Muro();
        addObject(muro20, 148, 104);
        Muro muro21 = new Muro();
        addObject(muro21, 202, 86);
        Muro muro22 = new Muro();
        addObject(muro22, 195, 56);
        muro15.setLocation(151, 30);
        muro16.setLocation(151, 50);
        muro20.setLocation(151, 70);
        muro19.setLocation(151, 90);
        muro18.setLocation(151, 110);
        muro17.setLocation(151, 130);
        muro21.setLocation(151, 150);
        muro22.setLocation(151, 171);
        muro22.setLocation(151, 170);
        Muro muro23 = new Muro();
        addObject(muro23, 161, 231);
        Muro muro24 = new Muro();
        addObject(muro24, 163, 277);
        Muro muro25 = new Muro();
        addObject(muro25, 193, 211);
        Muro muro26 = new Muro();
        addObject(muro26, 132, 213);
        muro26.setLocation(151, 190);
        muro23.setLocation(151, 210);
        muro24.setLocation(151, 230);
        muro25.setLocation(151, 250);
        muro2.setLocation(463, 75);
        Puerta puerta = new Puerta();
        addObject(puerta, 216, 15);
        puerta.setLocation(209, 9);
        muro2.setLocation(408, 30);
        Muro muro27 = new Muro();
        addObject(muro27, 409, 126);
        Muro muro28 = new Muro();
        addObject(muro28, 429, 118);
        Muro muro29 = new Muro();
        addObject(muro29, 401, 102);
        Muro muro30 = new Muro();
        addObject(muro30, 384, 93);
        Muro muro31 = new Muro();
        addObject(muro31, 458, 65);
        Muro muro32 = new Muro();
        addObject(muro32, 337, 208);
        Muro muro33 = new Muro();
        addObject(muro33, 372, 164);
        Muro muro34 = new Muro();
        addObject(muro34, 366, 151);
        Muro muro35 = new Muro();
        addObject(muro35, 418, 219);
        Muro muro36 = new Muro();
        addObject(muro36, 422, 263);
        Muro muro37 = new Muro();
        addObject(muro37, 446, 162);
        muro30.setLocation(408, 50);
        muro29.setLocation(408, 70);
        muro27.setLocation(408, 90);
        muro28.setLocation(408, 110);
        muro34.setLocation(408, 130);
        muro33.setLocation(408, 150);
        muro32.setLocation(408, 170);
        muro35.setLocation(408, 190);
        muro36.setLocation(408, 210);
        muro37.setLocation(408, 230);
        muro31.setLocation(408, 250);
        Muro muro38 = new Muro();
        addObject(muro38, 218, 288);
        Muro muro39 = new Muro();
        addObject(muro39, 227, 275);
        Muro muro40 = new Muro();
        addObject(muro40, 288, 280);
        Muro muro41 = new Muro();
        addObject(muro41, 283, 331);
        Muro muro42 = new Muro();
        addObject(muro42, 267, 225);
        Muro muro43 = new Muro();
        addObject(muro43, 313, 249);
        Muro muro44 = new Muro();
        addObject(muro44, 339, 304);
        Muro muro45 = new Muro();
        addObject(muro45, 378, 316);
        Muro muro46 = new Muro();
        addObject(muro46, 419, 325);
        Muro muro47 = new Muro();
        addObject(muro47, 446, 316);
        Muro muro48 = new Muro();
        addObject(muro48, 422, 297);
        muro39.setLocation(171, 250);
        muro38.setLocation(191, 250);
        muro40.setLocation(211, 250);
        muro41.setLocation(231, 250);
        muro42.setLocation(251, 250);
        muro43.setLocation(271, 250);
        muro44.setLocation(291, 250);
        muro45.setLocation(311, 250);
        muro48.setLocation(331, 250);
        muro46.setLocation(351, 251);
        muro46.setLocation(351, 250);
        muro47.setLocation(376, 252);
        muro47.setLocation(371, 250);
        Muro muro49 = new Muro();
        addObject(muro49, 397, 257);
        muro49.setLocation(390, 249);
        muro49.setLocation(390, 250);
        Heroe heroe2 = new Heroe();
        addObject(heroe2, 278, 238);
        heroe2.setLocation(272, 232);
        muro13.setLocation(10, 10);
        muro15.setLocation(10, 31);
        muro15.setLocation(10, 30);
        muro16.setLocation(10, 50);
        muro20.setLocation(10, 70);
        muro19.setLocation(10, 90);
        muro18.setLocation(10, 110);
        muro17.setLocation(10, 130);
        muro21.setLocation(151, 150);
        muro21.setLocation(151, 150);
        muro21.setLocation(151, 150);
        muro21.setLocation(151, 150);
        muro21.setLocation(151, 150);
        muro21.setLocation(10, 150);
        muro22.setLocation(10, 170);
        muro26.setLocation(9, 190);
        muro26.setLocation(10, 190);
        muro23.setLocation(10, 210);
        muro24.setLocation(10, 230);
        muro25.setLocation(151, 250);
        muro25.setLocation(151, 250);
        muro25.setLocation(151, 250);
        muro25.setLocation(151, 250);
        muro25.setLocation(151, 250);
        muro25.setLocation(151, 250);
        muro25.setLocation(151, 250);
        muro25.setLocation(151, 250);
        muro25.setLocation(151, 250);
        muro25.setLocation(151, 250);
        muro25.setLocation(151, 250);
        muro25.setLocation(151, 250);
        muro25.setLocation(151, 250);
        muro25.setLocation(95, 248);
        muro25.setLocation(10, 249);
        muro39.setLocation(30, 249);
        muro38.setLocation(173, 223);
        muro39.setLocation(10, 268);
        muro38.setLocation(30, 269);
        muro40.setLocation(50, 269);
        muro41.setLocation(70, 269);
        muro42.setLocation(90, 269);
        muro43.setLocation(109, 269);
        muro43.setLocation(110, 269);
        muro44.setLocation(130, 268);
        muro44.setLocation(130, 269);
        muro45.setLocation(221, 260);
        muro45.setLocation(150, 269);
        muro48.setLocation(183, 267);
        muro48.setLocation(170, 269);
        muro46.setLocation(190, 269);
        muro47.setLocation(276, 257);
        muro47.setLocation(210, 268);
        muro49.setLocation(243, 263);
        muro47.setLocation(210, 269);
        muro49.setLocation(230, 269);
        muro31.setLocation(249, 269);
        muro37.setLocation(269, 269);
        muro36.setLocation(354, 235);
        heroe2.setLocation(149, 251);
        muro36.setLocation(269, 249);
        muro35.setLocation(278, 188);
        muro35.setLocation(269, 229);
        muro32.setLocation(399, 170);
        muro32.setLocation(257, 175);
        muro32.setLocation(269, 210);
        muro32.setLocation(269, 209);
        muro33.setLocation(269, 153);
        muro33.setLocation(269, 189);
        muro34.setLocation(399, 130);
        muro34.setLocation(399, 130);
        muro34.setLocation(287, 124);
        muro34.setLocation(269, 169);
        muro28.setLocation(269, 119);
        muro28.setLocation(269, 150);
        muro27.setLocation(269, 130);
        muro27.setLocation(269, 131);
        muro27.setLocation(269, 130);
        muro29.setLocation(295, 83);
        muro29.setLocation(269, 110);
        muro30.setLocation(272, 59);
        muro30.setLocation(269, 90);
        muro2.setLocation(269, 70);
        muro14.setLocation(269, 50);
        muro12.setLocation(268, 29);
        muro12.setLocation(269, 30);
        muro11.setLocation(151, 10);
        muro10.setLocation(131, 10);
        muro9.setLocation(111, 10);
        muro8.setLocation(91, 10);
        muro7.setLocation(71, 10);
        Muro muro50 = new Muro();
        addObject(muro50, 58, 17);
        muro50.setLocation(51, 10);
        Muro muro51 = new Muro();
        addObject(muro51, 37, 17);
        muro51.setLocation(30, 10);
        muro50.setLocation(51, 10);
        muro50.setLocation(50, 10);
        muro7.setLocation(71, 10);
        muro7.setLocation(70, 10);
        muro8.setLocation(90, 10);
        muro9.setLocation(110, 10);
        muro10.setLocation(130, 10);
        muro11.setLocation(150, 10);
        muro.setLocation(170, 10);
        puerta.setLocation(209, 9);
        Arbol ostaculo = new Arbol();
        addObject(ostaculo, 155, 71);
        ostaculo.setLocation(148, 64);
        Arbol ostaculo2 = new Arbol();
        addObject(ostaculo2, 164, 78);
        ostaculo2.setLocation(167, 81);
        Arbol ostaculo3 = new Arbol();
        addObject(ostaculo3, 150, 94);
        ostaculo3.setLocation(130, 82);
        Arbol ostaculo4 = new Arbol();
        addObject(ostaculo4, 190, 106);
        ostaculo4.setLocation(187, 101);
        Arbol ostaculo5 = new Arbol();
        addObject(ostaculo5, 101, 105);
        ostaculo5.setLocation(109, 102);
        Arbol ostaculo6 = new Arbol();
        addObject(ostaculo6, 190, 128);
        ostaculo6.setLocation(187, 128);
        Arbol ostaculo7 = new Arbol();
        addObject(ostaculo7, 115, 131);
        ostaculo7.setLocation(107, 127);
        Corazon corazon = new Corazon();
        addObject(corazon, 155, 91);
        corazon.setLocation(148, 83);
        ostaculo2.setLocation(168, 81);
        ostaculo3.setLocation(128, 82);
        ostaculo.setLocation(147, 64);
        ostaculo.setLocation(148, 64);
        ostaculo5.setLocation(111, 100);
        ostaculo4.setLocation(185, 99);
        ostaculo7.setLocation(109, 123);
        ostaculo6.setLocation(184, 122);
        Arbol ostaculo8 = new Arbol();
        addObject(ostaculo8, 236, 182);
        Arbol ostaculo9 = new Arbol();
        addObject(ostaculo9, 224, 258);
        ostaculo9.setLocation(228, 249);
        ostaculo9.setLocation(229, 248);
        ostaculo8.setLocation(210, 247);
        ostaculo8.setLocation(209, 247);
        Arbol ostaculo10 = new Arbol();
        addObject(ostaculo10, 205, 175);
        ostaculo10.setLocation(228, 228);
        Arbol ostaculo11 = new Arbol();
        addObject(ostaculo11, 239, 190);
        ostaculo11.setLocation(248, 228);
        Arbol ostaculo12 = new Arbol();
        addObject(ostaculo12, 243, 182);
        ostaculo12.setLocation(247, 205);
        Arbol ostaculo13 = new Arbol();
        addObject(ostaculo13, 253, 187);
        ostaculo13.setLocation(244, 188);
        ostaculo12.setLocation(247, 208);
        ostaculo13.setLocation(248, 188);
        ostaculo12.setLocation(247, 208);
        ostaculo12.setLocation(248, 207);
        Arbol ostaculo14 = new Arbol();
        addObject(ostaculo14, 180, 188);
        ostaculo14.setLocation(228, 187);
        Corazon corazon2 = new Corazon();
        addObject(corazon2, 235, 213);
        corazon2.setLocation(228, 206);
        corazon2.setLocation(227, 206);
        corazon2.setLocation(227, 207);
        Corazon corazon3 = new Corazon();
        addObject(corazon3, 115, 204);
        corazon3.setLocation(115, 203);
        removeObject(corazon3);
        Arbol ostaculo15 = new Arbol();
        addObject(ostaculo15, 59, 255);
        Arbol ostaculo16 = new Arbol();
        addObject(ostaculo16, 58, 249);
        ostaculo16.setLocation(87, 243);
        ostaculo15.setLocation(53, 247);
        ostaculo16.setLocation(71, 247);
        ostaculo16.setLocation(72, 247);
        ostaculo15.setLocation(52, 247);
        Arbol ostaculo17 = new Arbol();
        addObject(ostaculo17, 102, 218);
        ostaculo17.setLocation(30, 231);
        Arbol ostaculo18 = new Arbol();
        addObject(ostaculo18, 62, 230);
        ostaculo18.setLocation(51, 228);
        ostaculo15.setLocation(51, 249);
        ostaculo16.setLocation(72, 249);
        ostaculo18.setLocation(52, 228);
        ostaculo17.setLocation(30, 230);
        ostaculo18.setLocation(51, 228);
        Arbol ostaculo19 = new Arbol();
        addObject(ostaculo19, 101, 221);
        ostaculo19.setLocation(29, 209);
        Arbol ostaculo20 = new Arbol();
        addObject(ostaculo20, 92, 198);
        ostaculo20.setLocation(30, 189);
        ostaculo20.setLocation(29, 190);
        Arbol ostaculo21 = new Arbol();
        addObject(ostaculo21, 90, 213);
        ostaculo21.setLocation(50, 190);
        Corazon corazon4 = new Corazon();
        addObject(corazon4, 58, 214);
        corazon4.setLocation(51, 210);
        ostaculo6.setLocation(185, 124);
        ostaculo6.setLocation(186, 124);
        Cofre cofre = new Cofre();
        addObject(cofre, 157, 153);
        cofre.setLocation(146, 166);
        Snake snake = new Snake();
        addObject(snake, 152, 149);
        snake.setLocation(145, 143);
        Snake snake2 = new Snake();
        addObject(snake2, 210, 163);
        snake2.setLocation(183, 204);
        cofre.setLocation(33, 32);
        snake.setLocation(249, 32);
        snake.setLocation(248, 31);
        Arbol ostaculo22 = new Arbol();
        addObject(ostaculo22, 254, 61);
        Arbol ostaculo23 = new Arbol();
        addObject(ostaculo23, 228, 55);
        ostaculo22.setLocation(248, 53);
        ostaculo23.setLocation(228, 52);
        ostaculo23.setLocation(227, 53);
        ostaculo7.setLocation(30, 70);
        ostaculo5.setLocation(50, 70);
        ostaculo3.setLocation(71, 70);
        ostaculo3.setLocation(71, 70);
        Roca roca = new Roca();
        addObject(roca, 24, 104);
        roca.setLocation(24, 104);
        roca.setLocation(24, 104);
        roca.setLocation(24, 104);
        roca.setLocation(24, 104);
        roca.setLocation(24, 104);
        roca.setLocation(24, 104);
        roca.setLocation(24, 104);
        roca.setLocation(24, 104);
        roca.setLocation(24, 104);
        roca.setLocation(24, 104);
        roca.setLocation(24, 104);
        roca.setLocation(24, 104);
        roca.setLocation(24, 104);
        roca.setLocation(24, 104);
        roca.setLocation(24, 104);
        roca.setLocation(24, 104);
        roca.setLocation(24, 104);
        roca.setLocation(24, 104);
        roca.setLocation(24, 104);
        roca.setLocation(24, 104);
        roca.setLocation(70, 125);
        removeObject(roca);
        Muro muro52 = new Muro();
        addObject(muro52, 98, 76);
        muro52.setLocation(92, 70);
        muro52.setLocation(91, 70);
        ostaculo.setLocation(112, 71);
        Muro muro53 = new Muro();
        addObject(muro53, 133, 84);
        Muro muro54 = new Muro();
        addObject(muro54, 134, 102);
        Muro muro55 = new Muro();
        addObject(muro55, 160, 111);
        muro53.setLocation(132, 71);
        muro54.setLocation(132, 92);
        corazon.setLocation(134, 149);
        muro55.setLocation(153, 93);
        corazon4.setLocation(31, 249);
        Muro muro56 = new Muro();
        addObject(muro56, 64, 232);
        Muro muro57 = new Muro();
        addObject(muro57, 82, 231);
        Muro muro58 = new Muro();
        addObject(muro58, 108, 227);
        ostaculo18.setLocation(85, 194);
        muro56.setLocation(50, 230);
        muro57.setLocation(71, 230);
        muro58.setLocation(92, 230);
        ostaculo15.setLocation(92, 250);
        ostaculo16.setLocation(125, 251);
        ostaculo15.setLocation(109, 249);
        muro56.setLocation(50, 230);
        muro57.setLocation(70, 230);
        muro58.setLocation(89, 230);
        muro58.setLocation(90, 230);
        ostaculo16.setLocation(131, 249);
        ostaculo16.setLocation(130, 249);
        heroe2.setLocation(88, 250);
        ostaculo20.setLocation(110, 228);
        ostaculo20.setLocation(110, 229);
        ostaculo20.setLocation(110, 231);
        ostaculo20.setLocation(110, 230);
        ostaculo19.setLocation(129, 229);
        snake2.setLocation(108, 209);
        Muro muro59 = new Muro();
        addObject(muro59, 139, 206);
        Muro muro60 = new Muro();
        addObject(muro60, 132, 184);
        Muro muro61 = new Muro();
        addObject(muro61, 145, 164);
        muro59.setLocation(129, 207);
        muro59.setLocation(128, 208);
        muro60.setLocation(128, 188);
        muro61.setLocation(128, 169);
        corazon.setLocation(87, 170);
        ostaculo18.setLocation(192, 169);
        ostaculo21.setLocation(213, 142);
        Corazon corazon5 = new Corazon();
        addObject(corazon5, 75, 177);
        Corazon corazon6 = new Corazon();
        addObject(corazon6, 65, 170);
        Corazon corazon7 = new Corazon();
        addObject(corazon7, 80, 157);
        corazon7.setLocation(65, 116);
        corazon5.setLocation(61, 176);
        corazon6.setLocation(87, 151);
        corazon5.setLocation(68, 170);
        corazon7.setLocation(68, 151);
        ostaculo18.setLocation(193, 134);
        ostaculo18.setLocation(128, 149);
        ostaculo6.setLocation(128, 128);
        Snake snake3 = new Snake();
        addObject(snake3, 37, 98);
        snake3.setLocation(30, 90);
        snake3.setLocation(30, 90);
        ostaculo21.setLocation(131, 112);
        ostaculo6.setLocation(131, 140);
        ostaculo6.setLocation(131, 132);
        ostaculo7.setLocation(29, 69);
        ostaculo5.setLocation(48, 69);
        ostaculo3.setLocation(67, 69);
        muro52.setLocation(87, 68);
        ostaculo.setLocation(107, 69);
        muro53.setLocation(128, 69);
        muro54.setLocation(129, 89);
        ostaculo21.setLocation(129, 110);
        ostaculo6.setLocation(129, 130);
        muro55.setLocation(149, 89);
        ostaculo2.setLocation(150, 110);
        ostaculo4.setLocation(169, 110);
        ostaculo8.setLocation(230, 231);
        ostaculo10.setLocation(200, 228);
        ostaculo8.setLocation(227, 228);
        ostaculo10.setLocation(207, 227);
        ostaculo11.setLocation(249, 247);
        ostaculo9.setLocation(186, 227);
        Corazon corazon8 = new Corazon();
        addObject(corazon8, 235, 254);
        corazon8.setLocation(228, 248);
        Corazon corazon9 = new Corazon();
        addObject(corazon9, 193, 203);
        corazon9.setLocation(249, 228);
        corazon2.setLocation(207, 207);
        ostaculo14.setLocation(228, 207);
        ostaculo14.setLocation(228, 208);
        removeObject(ostaculo12);
        removeObject(ostaculo13);
        Arbol ostaculo24 = new Arbol();
        addObject(ostaculo24, 195, 117);
        ostaculo24.setLocation(190, 110);
        Snake snake4 = new Snake();
        addObject(snake4, 216, 117);
        snake4.setLocation(207, 109);
        Arbol ostaculo25 = new Arbol();
        addObject(ostaculo25, 234, 118);
        ostaculo25.setLocation(229, 110);
        Arbol ostaculo26 = new Arbol();
        addObject(ostaculo26, 248, 113);
        ostaculo26.setLocation(249, 111);
        Arbol ostaculo27 = new Arbol();
        addObject(ostaculo27, 229, 140);
        ostaculo27.setLocation(228, 131);
        Corazon corazon10 = new Corazon();
        addObject(corazon10, 256, 98);
        corazon10.setLocation(249, 92);
        corazon10.setLocation(249, 91);
        puerta.setLocation(78, 33);
        muro50.setLocation(209, 10);
        puerta.setLocation(50, 9);
        Leeper leeper = new Leeper();
        addObject(leeper, 255, 136);
        leeper.setLocation(250, 129);
        Leeper leeper2 = new Leeper();
        addObject(leeper2, 104, 203);
        leeper2.setLocation(71, 198);
        removeObject(snake2);
        leeper2.setLocation(107, 206);
        removeObject(snake3);
        Leeper leeper3 = new Leeper();
        addObject(leeper3, 32, 90);
        leeper3.setLocation(31, 89);
        snake.setLocation(227, 65);
        removeObject(snake);
        Leeper leeper4 = new Leeper();
        addObject(leeper4, 221, 49);
        leeper4.setLocation(249, 28);
    }
}
